How do I add multiple atrributes to an element in JavaScript